#Boa:Frame:OpenFrame

import wx

def create(parent):
    return OpenFrame(parent)

[wxID_OPENFRAME, wxID_OPENFRAMEACCOUNTLIST, wxID_OPENFRAMEBUTTON4, 
 wxID_OPENFRAMEDELACCT, wxID_OPENFRAMENEWACCT, wxID_OPENFRAMEOPENACCT, 
] = [wx.NewId() for _init_ctrls in range(6)]

class OpenFrame(wx.Frame):
    def _init_coll_gridSizer1_Items(self, parent):
        # generated method, don't edit

        parent.AddWindow(self.NEWACCT, 0, border=0, flag=0)
        parent.AddWindow(self.OpenAcct, 0, border=0, flag=0)
        parent.AddWindow(self.DelAcct, 0, border=0, flag=0)
        parent.AddWindow(self.button4, 0, border=0, flag=0)

    def _init_coll_boxSizer1_Items(self, parent):
        # generated method, don't edit

        parent.AddWindow(self.AccountList, 2, border=0,
              flag=wx.SHRINK | wx.GROW | wx.EXPAND)
        parent.AddSizer(self.gridSizer1, 2, border=0,
              flag=wx.SHRINK | wx.GROW | wx.EXPAND)

    def _init_sizers(self):
        # generated method, don't edit
        self.boxSizer1 = wx.BoxSizer(orient=wx.VERTICAL)

        self.gridSizer1 = wx.GridSizer(cols=0, hgap=0, rows=1, vgap=0)

        self._init_coll_boxSizer1_Items(self.boxSizer1)
        self._init_coll_gridSizer1_Items(self.gridSizer1)

        self.SetSizer(self.boxSizer1)

    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_OPENFRAME, name='OpenFrame',
              parent=prnt, pos=wx.Point(390, 249), size=wx.Size(527, 337),
              style=wx.DEFAULT_FRAME_STYLE, title='CUBudget')
        self.SetClientSize(wx.Size(519, 303))

        self.AccountList = wx.ListCtrl(id=wxID_OPENFRAMEACCOUNTLIST,
              name='AccountList', parent=self, pos=wx.Point(0, 0),
              size=wx.Size(519, 151), style=wx.VSCROLL | wx.LC_ICON)

        self.NEWACCT = wx.Button(id=wxID_OPENFRAMENEWACCT,
              label='  New\nAccount', name='NEWACCT', parent=self,
              pos=wx.Point(0, 151), size=wx.Size(104, 33), style=0)
        self.NEWACCT.SetAutoLayout(False)
        self.NEWACCT.Center(wx.HORIZONTAL)

        self.OpenAcct = wx.Button(id=wxID_OPENFRAMEOPENACCT, label='Open',
              name='OpenAcct', parent=self, pos=wx.Point(129, 151),
              size=wx.Size(100, 33), style=0)

        self.DelAcct = wx.Button(id=wxID_OPENFRAMEDELACCT,
              label='Delete Account', name='DelAcct', parent=self,
              pos=wx.Point(258, 151), size=wx.Size(130, 33), style=0)

        self.button4 = wx.Button(id=wxID_OPENFRAMEBUTTON4, label='button4',
              name='button4', parent=self, pos=wx.Point(387, 151),
              size=wx.Size(100, 33), style=0)

        self._init_sizers()

    def __init__(self, parent):
        self._init_ctrls(parent)
